package com.siwei.mes.mapper.system;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.system.TemperatureAndHumidity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 温湿度管理(TemperatureAndHumidity)表数据库访问层
 *
 * @author linzi
 * @since 2023-11-25 22:22:21
 */
public interface TemperatureAndHumidityMapper extends BaseMapper<TemperatureAndHumidity> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<TemperatureAndHumidity> getList(TemperatureAndHumidity entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    TemperatureAndHumidity loadById(@Param("id") Long id);

    /**
     * 获取最后一条数据
     *
     * @param entity
     * @return
     */
    TemperatureAndHumidity getLastInfo(TemperatureAndHumidity entity);
}
